/// preId : ""
/// titleType : 1
/// rightAnswer : "C"
/// isTrue : -1
/// nextId : "1836580404887515184"
/// answerToBeSelected : {"A":"依法治国","B":"改革开放","C":"人民当家作主","D":"党的领导"}
/// userAnswer : ""
/// currentId : "1836580404849766467"
/// index : 1
/// title : "1、(单选题)  （）是社会主义民主政治的本质特征。"
/// tips : ""

class ExaminationQuestionDto {
  ExaminationQuestionDto({
      String? preId, 
      num? titleType,
    Object? rightAnswer,
      num? isTrue, 
      String? nextId,
    Map? answerToBeSelected,
      Object? userAnswer,
      String? currentId, 
      num? index, 
      String? title, 
      String? tips,}){
    _preId = preId;
    _titleType = titleType;
    _rightAnswer = rightAnswer;
    _isTrue = isTrue;
    _nextId = nextId;
    _answerToBeSelected = answerToBeSelected;
    _userAnswer = userAnswer;
    _currentId = currentId;
    _index = index;
    _title = title;
    _tips = tips;
}

  ExaminationQuestionDto.fromJson(dynamic json) {
    _preId = json['preId'];
    _titleType = json['titleType'];
    _rightAnswer = json['rightAnswer'];
    _isTrue = json['isTrue'];
    _nextId = json['nextId'];
    _answerToBeSelected = json['answerToBeSelected'] ;
    _userAnswer = json['userAnswer'];
    _currentId = json['currentId'];
    _index = json['index'];
    _title = json['title'];
    _tips = json['tips'];
  }
  String? _preId;
  num? _titleType;
  Object? _rightAnswer;
  num? _isTrue;
  String? _nextId;
  Map? _answerToBeSelected;
  Object? _userAnswer;
  String? _currentId;
  num? _index;
  String? _title;
  String? _tips;
ExaminationQuestionDto copyWith({  String? preId,
  num? titleType,
  Object? rightAnswer,
  num? isTrue,
  String? nextId,
  Map? answerToBeSelected,
  Object? userAnswer,
  String? currentId,
  num? index,
  String? title,
  String? tips,
}) => ExaminationQuestionDto(  preId: preId ?? _preId,
  titleType: titleType ?? _titleType,
  rightAnswer: rightAnswer ?? _rightAnswer,
  isTrue: isTrue ?? _isTrue,
  nextId: nextId ?? _nextId,
  answerToBeSelected: answerToBeSelected ?? _answerToBeSelected,
  userAnswer: userAnswer ?? _userAnswer,
  currentId: currentId ?? _currentId,
  index: index ?? _index,
  title: title ?? _title,
  tips: tips ?? _tips,
);
  String? get preId => _preId;
  num? get titleType => _titleType;
  Object? get rightAnswer => _rightAnswer;
  num? get isTrue => _isTrue;
  String? get nextId => _nextId;
  Map? get answerToBeSelected => _answerToBeSelected;
  Object? get userAnswer => _userAnswer;
  String? get currentId => _currentId;
  num? get index => _index;
  String? get title => _title;
  String? get tips => _tips;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['preId'] = _preId;
    map['titleType'] = _titleType;
    map['rightAnswer'] = _rightAnswer;
    map['isTrue'] = _isTrue;
    map['nextId'] = _nextId;
    if (_answerToBeSelected != null) {
      map['answerToBeSelected'] = _answerToBeSelected;
    }
    map['userAnswer'] = _userAnswer;
    map['currentId'] = _currentId;
    map['index'] = _index;
    map['title'] = _title;
    map['tips'] = _tips;
    return map;
  }

}

